{template 'member', 'header'}
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}member_common.js"></script>
<script type="text/javascript" src="{JS_PATH}formvalidator.js"
	charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}formvalidatorregex.js"
	charset="UTF-8"></script>
<div id="memberArea">
	<div class="col-auto">
		<div class="col-1 ">
			<h6 class="title">{L('send_email')}</h6>
			<div class="content">
				<form name="myform"
					action="{APP_PATH}index.php?m=member&c=index&a=sendemail_author"
					method="post" id="myform">
					<table width="100%" cellspacing="0" class="table_form">
						<tr>
							<th>{L('email')}：</th>
							<td><input name="email" type="text" id="email" size="80"
								class="input-text" /> <span id="msgid1"></span></td>
						</tr>
						<tr>
							<th>{L('subject')}：</th>
							<td><input name="title" type="text" id="title" size="80"
								class="input-text" value="{$title}" /> <span id="msgid1"></span></td>
						</tr>
						<tr>
							<th>{L('email_contents')}：</th>
							<td> <textarea name="usernote"
									id="usernote" row="40">{$url}</textarea>
								<script type="text/javascript"
									src="{JS_PATH}ckeditor/ckeditor.js"></script>
								<script type="text/javascript">
									CKEDITOR.replace( 'usernote',{height:200,textareaid:'interpret_content',module:'content',catid:'11',
										alowuploadexts:'',allowbrowser:'1',allowuploadnum:'10',authkey:'468da3385fe26b468d0840178842c390',
										toolbar :
										[
										['Source'],['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],['Maximize'],
										]
										});
										</script></td>
						</tr>
						<tr>
							<th>{L('checkcode')}：</th>
							<td><input name="code" type="text" id="code" size="10"
								class="input-text" />
								{form::checkcode('code_img','4','14',110,30)}</td>
						</tr>
						<tr>
							<td></td>
							<td colspan="2"><label> <input type="submit"
									name="dosubmit" id="dosubmit" value="{L('send_email')}" class="button" />
							</label></td>
						</tr>
					</table>
				</form>
			</div>
			<span class="o1"></span><span class="o2"></span><span class="o3"></span><span
				class="o4"></span>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#title").formValidator({onshow:"{L('input').L('subject')}",onfocus:"{L('subject').L('between_2_to_100')}"}).inputValidator({min:2,max:100,onerror:"{L('subject').L('between_2_to_100')}"});
	$("#usernote").formValidator({onshow:"{L('input').L('email_contents')}"}).inputValidator({min:1,max:100,onerror:"{L('email_contents').L('between_2_to_100')}"});
	$("#email").formValidator({onshow:"{L('input').L('email')}",onfocus:"{L('email').L('format_incorrect')}",oncorrect:"{L('email').L('format_right')}"}).inputValidator({min:2,max:32,onerror:"{L('email').L('between_2_to_32')}"}).regexValidator({regexp:"email",datatype:"enum",onerror:"{L('email').L('format_incorrect')}"})
	});
</script>
{template 'member', 'footer'}
